<template>
    <div>
        <h1>DemoMixin1</h1>
        <el-link>{{this.platform}}</el-link>
        <el-button @click="getPlatform">点我</el-button>
        <el-button @click="sendEmit">发送事件</el-button>
    </div>
</template>

<script>

export default {
    name: '',
    components: {
    },
    data() {
        return {}
    },
    created() {
    },
    mounted() {
    },
    events: {
        'evt.test1'() {
            alert('执行evt.test1事件')
        }
    },
    methods: {
        getPlatform() {
            alert(this.platform)
        },
        sendEmit() {
            this.$nuxt.$emit('evt.test1')
        }

    },
}
</script> 

<style scoped>

</style>
